package com.tanhua.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 桃花传音:音频表，动态内容
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "peach_blossom _audio")
public class Audio implements java.io.Serializable {

    private static final long serialVersionUID = 8732308321082804788L;

    @Id
    private ObjectId id; //主键id
    private Long aid; //音频id
    private Long userId; //发布用户id
    private String audioUrl; //桃花传音:音频地址 url
    private Long created; //发布时间
    private Integer count; //语音剩余次数

}